<%@page import="com.zsrt.cookie.Utils.CookieUtil"%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>

<span>

	<%
		Cookie c1= CookieUtil.getCookie(request, "lasttime");
		Cookie c2= CookieUtil.getCookie(request, "currenttime");
		if(c1.getValue().equals(c2.getValue())){
			response.getWriter().write("你是第一次访问cookie");
		}else{
			response.getWriter().write("上一次访问cookie的时间是："+c1.getValue());
		}
	%>
		
</span>
</body>
</html>